<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/restrito/layout/template.xhtml"
                xmlns:c="http://java.sun.com/jsp/jstl/core">
    <ui:define name="content">

        <p>
            <ui:insert name="content">

            </ui:insert>
        </p>


        <h:form>
            <rich:panel>
                <f:facet name="header">
                    <h:panelGroup>

                        <h:outputText value="Cadastro" />

                    </h:panelGroup>
                </f:facet>

                <h:panelGrid columns="2"> 
                    <h:outputText value="Lance Inicial:" />

                    <h:inputText value="#{leilaoController.leilao.lance_ini}">



                    </h:inputText>

                    <h:outputText value="Descricao:" />
                    <h:inputText value="#{leilaoController.leilao.descricao}" />

                    <h:outputText value="Duracao" />
                    <h:inputText value="#{leilaoController.leilao.duracao}" />


                    <h:outputText value="Status" />
                    <h:selectOneMenu value="#{leilaoController.leilao.status}">
                        <f:selectItem itemValue="Ativo" itemLabel="Ativo"/>
                        <f:selectItem itemValue="Inativo" itemLabel="Inativo"/>
                    </h:selectOneMenu>

                    <h:outputText value="Produto" />
                    <!--
                          <h:selectOneMenu value="#{leilaoController.leilao.produto}">
          
                                <f:selectItems value="#{leilaoController.listarProdutos()}"/>
          
                          </h:selectOneMenu>
                    -->



                    <br/>
                    <h:commandButton value="Salvar" action="#{leilaoController.inserir()}"/>
                </h:panelGrid>
            </rich:panel>
        </h:form>


        <br/>
        <h:messages style="font-size: 13px; color: white;"/>

    </ui:define>
</ui:composition>